#include <stdio.h>

int main()
{
    int qian, hou;
    int integer = 0;
    for (qian = 1; qian < 10; qian++)
    {
        for (hou = 0; hou < 10; hou++)
        {
            for (int j = 30; j < 100; j++)
            {
                if(j*j==qian * 1000 + qian * 100 + hou * 10+ hou )
                {
                    integer=qian * 1000 + qian * 100 + hou * 10+ hou;
                    printf("The car number is %d\n", integer);
                    printf("%d\n",j);
                    break;
                }
            }
        }
        if (integer != 0)break;
    }
    
}

